﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AddIn.EA.Core.Common
{
    [AttributeUsage(AttributeTargets.Class)]
    public class AddInMenuAttribute : Attribute
    {
        public AddInMenuAttribute(string itemDescription) 
            : this(itemDescription, null)
        {

        }
        
        public AddInMenuAttribute(string itemDescription, string menuName) 
            : this(itemDescription, menuName, MenuLocation.All)
        {
        }

        public AddInMenuAttribute(string itemDescription, string menuName, MenuLocation menuLocation)
        {
            this.ItemDescription = itemDescription;
            this.MenuName = menuName;
            this.MenuLocation = menuLocation;
        }

        public string ItemDescription { get; set; }
        public string MenuName { get; set; }
        public MenuLocation MenuLocation { get; set; }
    }
}

